package xyz.luckyli.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName:LxxRule
 * Package:xyz.luckyli.myrule
 * Description:
 *
 * @Date:2020/11/9 20:16
 * @Author:857251389@qq.com
 */
@Configuration
public class LxxRule {

    @Bean
    public IRule myRule(){
       return new LxxRandomRule();
     //   return new RandomRule();
    }
}
